<?php 
if($pageURL==$homepage)
{
?>
<div class="sidebar1">
    <div id="smoothmenu2" class="ddsmoothmenu-v">
        <?php    
        generate_menu(0);
        ?>
    </div>
</div>
<?php
}
?> 